package com.itheima.core.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.itheima.core.dao.routeNodeDao;
import com.itheima.core.po.routeNode;
import com.itheima.core.service.routeNodeService;

@Service("routeNodeService")
@Transactional
public class routeNodeServiceImpl implements routeNodeService{

	@Autowired
	private routeNodeDao routenodedao; 
	
	@Override
	public List<routeNode> findAllRouteNode(String routeID) {
		// TODO Auto-generated method stub		
		return this.routenodedao.findAllRouteNode(routeID);
	}

	@Override
	public void deleteRouteNode(String routeNodeID) {
		// TODO Auto-generated method stub
		routenodedao.deleteRouteNode(routeNodeID);
	}

	@Override
	public void addRouteNode(String routeNodeID,String routeID, String nodeName, Double distance) {
		// TODO Auto-generated method stub
		routenodedao.addRouteNode(routeNodeID,routeID, nodeName, distance);
	}

	@Override
	public void changeRouteNode(String routeNNodeID, String nodeName, Double distance) {
		// TODO Auto-generated method stub
		routenodedao.changeRouteNode(routeNNodeID, nodeName, distance);
	}

}
